Category: CGI
cgi > htm Mod Rewrite
I been reading all sorts of articles and tried different mod rewrites but have not found 1 yet that works.
here is an example of my code:
rewriteEngine on
RewriteRule ^morelinks/(.*).htm /morelinks.cgi?category=$1 [T=application/x-httpd-cgi]
what i am trying to accomplish is
to make
http://www.domain.com/cgi-bin/morelinks.cgi?category=1
into
http://www.domain.com/morelinks/1.htm
my server is all up todate with all the latest apache, php, cgi etc. Mod Rewrite is enabled.
the script itself runs directly from cgi-bin/
I had to ssi the
http://www.domain.com/cgi-bin/index.cgi
to the http://www.domain.com/index.htm
so the site could appear.
i added the .htaccess file to the cgi-bin folder, tried it outside of the cgi-bin, and inside the html folder, but nothing seems to make it change.
my path structure is like so:
/my/server/path/ptrsearch.com/html
/my/server/path/ptrsearch.com/cgi-bin
all cgi has to be within cgi-bin folder
all html has to be within the html folder
Am i missing something??
any help or pointing me in the right direction would be greatful
Thanks